import request from '@/utils/request'

// 查询菜谱热门搜索列表
export function listSearch_logs(query) {
  return request({
    url: '/recipes/search_logs/list',
    method: 'get',
    params: query
  })
}

// 查询菜谱热门搜索详细
export function getSearch_logs(id) {
  return request({
    url: '/recipes/search_logs/' + id,
    method: 'get'
  })
}

// 新增菜谱热门搜索
export function addSearch_logs(data) {
  return request({
    url: '/recipes/search_logs',
    method: 'post',
    data: data
  })
}

// 修改菜谱热门搜索
export function updateSearch_logs(data) {
  return request({
    url: '/recipes/search_logs',
    method: 'put',
    data: data
  })
}

// 删除菜谱热门搜索
export function delSearch_logs(id) {
  return request({
    url: '/recipes/search_logs/' + id,
    method: 'delete'
  })
}
